package edu.fpa.day0725;

import java.util.Arrays;

public class TestBubbleSort {
    public static void main(String[] args){
        int i[]={34,67,84,43,98,2,78,46,97,21};
        int temp=0;
        for (int k=0;k<i.length-2;k++){
            for (int j=0;j<i.length-1;j++){
                if (i[j]>i[j+1]){
                    temp=i[j];
                    i[j]=i[j+1];
                    i[j+1]=temp;
                    System.out.println(Arrays.toString(i));
                }

            }System.out.println("##########################################################");
        }

//        for (int m:i
//             ) {
//            System.out.println(m);
//        }
    }
}
